package com.xiao.hao.convertor;


import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
import com.xiao.hao.config.LocalDateTimeConfig;
import com.xiao.hao.req.XhMedicationPlanInsertReq;
import com.xiao.hao.req.XhMedicationPlanQueryPageReq;
import com.xiao.hao.req.XhMedicationPlanUpdateReq;
import com.xiao.hao.resp.XhMedicationPlanResp;
import com.xiao.hao.entity.XhMedicationPlan;

/**
*
*
* @Description 用户关联用药计划 类型转换
* @Author xiaohao
* @Date 2025-03-05 17:23:15
*/
@Mapper(uses = {LocalDateTimeConfig.class}, componentModel = "spring")
public interface XhMedicationPlanConvertor {

    XhMedicationPlanConvertor INSTANCE = Mappers.getMapper(XhMedicationPlanConvertor.class);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhMedicationPlan
    * @author xiaohao
    * @date 2025-03-05 17:23:15
    */
    XhMedicationPlan reqToEntity(XhMedicationPlanInsertReq req);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhMedicationPlan
    * @author xiaohao
    * @date 2025-03-05 17:23:15
    */
    XhMedicationPlan reqToEntity(XhMedicationPlanUpdateReq req);


    /**
    * 功能描述:
    *
    * @param entity
    * @return com.xiao.hao.resp.XhMedicationPlanResp
    * @author xiaohao
    * @date 2025-03-05 17:23:15
    */
    XhMedicationPlanResp entityToResp(XhMedicationPlan entity);

    /**
    * 功能描述:
    *
    * @param list
    * @return java.util.List<com.xiao.hao.resp.XhMedicationPlanResp>
    * @author xiaohao
    * @date 2025-03-05 17:23:15
    */
    List<XhMedicationPlanResp> entityListToRespList(List<XhMedicationPlan> list);
}



